Class com.symantec.itools.io.Directory
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.symantec.itools.io.Directory

Object
   |
   +----com.symantec.itools.io.Directory

public class Directory
extends Object

Version:
1.0
Author:
Symantec Internet Tools Division
Since:
VCafe 3.0

Variable Index

 o directory
 o name
 o parent

Constructor Index

 o com.symantec.itools.io.Directory()
 o com.symantec.itools.io.Directory(String)
 o com.symantec.itools.io.Directory(String, boolean)

Method Index

 o canRead()
 o canWrite()
 o copyFile(File, File)
 o copyTo(Directory, boolean)
 o copyTo(FilenameFilter, Directory, boolean)
 o delete()
 o deleteAll()
 o exists()
 o getName()
 o getParent()
 o lastModified()
 o list(boolean)
 o list(FilenameFilter, boolean)
 o listDirectories(boolean)
 o listDirectories(DirectoryFilenameFilter, boolean)
 o listFiles(boolean)
 o listFiles(FileFilenameFilter, boolean)
 o moveTo(FilenameFilter, Directory, boolean)
 o renameTo(AbstractDirectory)
 o setName(String, boolean)

Variables

 o directory
protected java.io.File directory

Since: VCafe 3.0
 o name
protected java.lang.String name

Since: VCafe 3.0
 o parent
protected com.symantec.itools.io.Directory parent

Since: VCafe 3.0

Constructors

 o Directory
protected Directory()
 o Directory
public Directory(String dirName) throws NotDirectoryException, FileNotFoundException, IOException
 o Directory
public Directory(String dirName,
                 boolean create) throws NotDirectoryException, FileNotFoundException, IOException

Methods

 o canRead
public boolean canRead()

Since:
VCafe 3.0
 o canWrite
public boolean canWrite()

Since:
VCafe 3.0
 o copyFile
protected boolean copyFile(File source,
                           File target) throws IOException

Parameters:
source - TODO
target - TODO
Throws: IOException
Since:
VCafe 3.0
 o copyTo
public boolean copyTo(Directory dst,
                      boolean recurse) throws IOException

Parameters:
filter - TODO
dst - TODO
recurse - TODO
Since:
VCafe 3.0
 o copyTo
public boolean copyTo(FilenameFilter filter,
                      Directory dst,
                      boolean recurse) throws IOException
 o delete
public boolean delete()

Since:
VCafe 3.0
 o deleteAll
public boolean deleteAll()
 o exists
public boolean exists()

Since:
VCafe 3.0
 o getName
public java.lang.String getName()

Since:
VCafe 3.0
 o getParent
public java.lang.String getParent()

Since:
VCafe 3.0
 o lastModified
public long lastModified()

Since:
VCafe 3.0
 o list
public java.lang.String[] list(boolean recurse)

Parameters:
recurse - TODO
Since:
VCafe 3.0
 o list
public java.lang.String[] list(FilenameFilter filter,
                               boolean recurse)

Parameters:
filter - TODO
recurse - TODO
Since:
VCafe 3.0
 o listDirectories
public java.lang.String[] listDirectories(boolean recurse)

Parameters:
recurse - TODO
Since:
VCafe 3.0
 o listDirectories
public java.lang.String[] listDirectories(DirectoryFilenameFilter filter,
                                          boolean recurse)

Parameters:
filter - TODO
recurse - TODO
Since:
VCafe 3.0
 o listFiles
public java.lang.String[] listFiles(boolean recurse)

Parameters:
recurse - TODO
Since:
VCafe 3.0
 o listFiles
public java.lang.String[] listFiles(FileFilenameFilter filter,
                                    boolean recurse)

Parameters:
filter - TODO
recurse - TODO
Since:
VCafe 3.0
 o moveTo
public boolean moveTo(FilenameFilter filter,
                      Directory dst,
                      boolean recurse)

Parameters:
filter - TODO
dst - TODO
recurse - TODO
Since:
VCafe 3.0
 o renameTo
public boolean renameTo(AbstractDirectory dir)

Parameters:
dir - TODO
Since:
VCafe 3.0
 o setName
protected void setName(String dirName,
                       boolean create) throws NotDirectoryException, FileNotFoundException, IOException

Parameters:
dirName - TODO
create - TODO
Throws: NotDirectoryException
Throws: FileNotFoundException
Throws: IOException
Since:
VCafe 3.0

All Packages  Class Hierarchy  This Package  Previous  Next  Index